package com.wan.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wan.entity.Permission;
import com.wan.mapper.PermissionMapper;
import com.wan.service.IPermissionService;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class PermissionServiceImpl extends ServiceImpl<PermissionMapper, Permission> implements IPermissionService {
	@Override
	public List<String> selectPermissionValueByUserId(String id) {
		return baseMapper.selectPermissionValueByUserId(id);
	}

	@Override
	public List<String> selectAllPermissionValue() {
		return baseMapper.selectAllPermissionValue();
	}

	@Override
	public List<Permission> selectPermissionByUserId(String userId) {
		return baseMapper.selectPermissionByUserId(userId);
	}
}
